/*
 * NoSettingsPanel.java
 *
 * Created on July 15, 2006, 4:14 PM
 */

package net.anzix.jimposition.transformations;



public class ResizeFilterPanel extends javax.swing.JPanel {
   
    /**
     * Creates new form NoSettingsPanel
     */
    public ResizeFilterPanel() {
        initComponents();
    }

    public javax.swing.JTextField getRatioTextField() {
        return ratioTextField;
    }

    public void setRatioTextField(javax.swing.JTextField ratioTextField) {
        this.ratioTextField = ratioTextField;
    }

    public javax.swing.JComboBox getSizeComboBox() {
        return sizeComboBox;
    }

    public void setSizeComboBox(javax.swing.JComboBox sizeComboBox) {
        this.sizeComboBox = sizeComboBox;
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        ratioTextField = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        sizeComboBox = new javax.swing.JComboBox();

        jLabel1.setText("Ratio:");

        jLabel2.setText("Resize to:");

        sizeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A5", "A4", "A3", "A2", "A1", "A0", "Custom" }));
        sizeComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sizeComboBoxActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(sizeComboBox, 0, 139, Short.MAX_VALUE)
                    .add(jLabel2)
                    .add(jLabel1)
                    .add(ratioTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 95, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel2)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(sizeComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel1)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(ratioTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(26, 26, 26))
        );
    }// </editor-fold>//GEN-END:initComponents

private void sizeComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sizeComboBoxActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_sizeComboBoxActionPerformed
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JTextField ratioTextField;
    private javax.swing.JComboBox sizeComboBox;
    // End of variables declaration//GEN-END:variables
    
}
